/*
 * RiverFrameBackend.java
 * Team qq 2011
 */
package com.google.code.timetrail.gui;

import com.google.code.timetrail.backend.Control;
import com.google.code.timetrail.backend.River;

/**
 * A frame that allows for river crossing
 * PRECONDITION: the current place in Control must have a river crossing
 * @author Steven
 *
 */
public class RiverFrameBackend {

	/** The control object that gets important data from the back end **/
    private final Control gameControl;
		
    /** The River that this GUI shows to the player **/
    private final River currentRiver;
    
    public RiverFrameBackend(Control gameControl){
    	this.gameControl = gameControl;
    	this.currentRiver = new River(this.gameControl,this.gameControl.getCurrentPlace());
    }
    
    public String riverStatus() {
			return "At " + gameControl.getCurrentPlace().getName() + " you encounter " + currentRiver.toString(); 
    }
    
    public String optionsText() {
    	return "Your options are: ";
    }
    
    public String ferryText() {
    	return "The ferry cost " + currentRiver.getFerryPrice() + "dollars";
    }
    
    public String caulkText() {
    	return "Caulk the wagon and float downstream";
    }
    
    public String fordText() {
    	return "Ford the river";
    }
    
    public String confirmText() {
    	return "Confirm";
    }
    
    public String errorText() {
    	return "Problem Occured during option selection";
    }
    public River getRiver() {
    	return currentRiver;
    }
    
}
